package com.walter.common.autoconfigure;

import com.walter.common.interceptors.FeignTraceInterceptor;
import feign.Feign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;

/**
 * @author Walter
 * @date 2025/1/22 下午12:55
 **/
@ConditionalOnClass(Feign.class)
@Slf4j
public class FeignTraceAutoConfiguration {
    @Bean
    public FeignTraceInterceptor feignTraceInterceptor() {
        log.info("FeignTraceInterceptor initialized");
        return new FeignTraceInterceptor();
    }
}
